import 'package:flutter/material.dart';
//import 'package:transparent_image/transparent_image.dart';
import '../../routers/application.dart';


class RunningStatus extends StatefulWidget {
  @override
  RunningStatusState createState() => new RunningStatusState();
}

class RunningStatusState extends State<RunningStatus> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    //super.build(context);
    return Container(
      padding: EdgeInsets.all(8),
        color: Colors.lightGreen,
        child: Row(
      crossAxisAlignment: CrossAxisAlignment.center,
      mainAxisSize: MainAxisSize.max,
      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
      children: <Widget>[
        Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Text("设备忙闲率", style: TextStyle(color: Colors.black54, fontSize: 18.0,),),
            Text("80%", style: TextStyle(color: Colors.black, fontSize: 30.0,)),
            Text("订单完成率", style: TextStyle(color: Colors.black54, fontSize: 18.0,)),
            Text("20%", style: TextStyle(color: Colors.black, fontSize: 30.0,)),
          ],
        ),
        Image.asset("assets/images/rcrobot.gif", height: 80,),
        Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Text("待交付订单", style: TextStyle(color: Colors.black54, fontSize: 18.0,)),
            Text("3000", style: TextStyle(color: Colors.black, fontSize: 30.0,)),
            Text("生产效率", style: TextStyle(color: Colors.black54, fontSize: 18.0,)),
            Text("30", style: TextStyle(color: Colors.black, fontSize: 30.0,)),
          ],
        )
      ],
    ));
  }

}
